package com.qiaofang.applet.service.property.repository;

import com.qiaofang.applet.service.property.domain.PropertyVr;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface PropertyVrRepository extends MongoRepository<PropertyVr, String> {

    PropertyVr findByVrIdAndPropertyUuidAndCompanyUuid(Long vrId, String propertyUuid, String companyUuid);

    PropertyVr findFirstByPropertyUuidAndCityCodeAndCorporationCode(String propertyUuid, String cityCode, String corporationCode);

    PropertyVr findByVrUuidAndPropertyUuidAndCompanyUuid(String vrUuid, String propertyUuid, String companyUuid);
}
